package mutation;


import ga.*;

public abstract class MutationStrategy implements Mutation {
	protected abstract Individual mutate(Individual individual) ;
	protected abstract boolean getMutationFlag(int inidvidualSize);
	protected GAInfo gaInfo;
	public Individual mutateIndividual(Individual individual) {	
		individual=  this.mutate(individual);
		return	individual;
	}
	public final void setExtraInfo(GAInfo gaInfo) {
		this.gaInfo     = gaInfo;
	}

}
